That's called a hypnic jerk ..Read the post to know more :D
Read this post on science135.blogspot.com