Rib pain

Breanna • Baby #1. 19 yrs old
Okay so when I sleep, I sleep on my side I get a sharp pain in my rib that wakes me up and try to close my eyes and ignore it but it hurts more when I breathe so I switch to the other side and it doesn't stop until I get up and stand up is that the baby kicking me in my ribs telling me he doesn't like the position I'm in?