Sleeping next to small pet or child!

My cat who is 8 months sleeps next to me in bed all the time and I'm constantly worried I'm going to roll over and crush her in my sleep! Idk how mothers sleep with their babies without worrying! Teach me your ways