Hmm... This kind of thing happened to me before. I was thinking of dinosaurs for some reason while going to bed and was imagining them in my head and all of a sudden the picture became extremely realy and I thought I was awake and I instantly thought "OH SHIT!!" because I was thinking of T-Rex's.