Spindle dynamics in the thalamus and the cortex