How sleep, memory go hand-in-hand