6 month old waking up all night

My 6 month old used to sleep 12 hours straight every night, now she wakes up every 3 hours because she’s hitting her head on the top of the cot. How can I stop her from doing this? She keeps moving to the top!!!

Also, how do I get her to go to bed without a bottle?