The cortex finds its place in REM sleep