Following exposure to visual stimuli, the neurons activated by the stimuli remain more active during subsequent sleep. Sleep is vital for these neurons to connect an emotional or fearful memory to a sensory event.