drift off

中级 (B1) informal

To slowly fall asleep, or to stop paying attention and let your mind wander.

"She drifted off during the film and woke up just before the credits rolled."