Rib pain

I can’t tell if I have rib pain due to gas,constipation or my baby/uterus growing. If I lay on my side it hurts. I’m 20 weeks and 3 days td