This is quite normal for baby who sleep in their own crib. I used to say my son sleep like "Typhoon".
When you put your baby down you could have his feet touch the end of the crib so that there is more space for him to move up. You may think of putting a think cushion or pad on the side of his little head.