Good job! I also get that sometimes. When you decide to just lie completely still and almost fall asleep, the brain thinks you are about to fall asleep, which then "turns on" your dream memory.

Keep it up!