Breathing movements.....?

I know babies do practice breathing in the womb. I have been tracking pretty uncomfortable contractions for the past twenty or so minutes and during the contraction he does these weird rhythmic movements that look like breathing.....anyone else experience this? I'm high risk for possible distress on baby due to some health issues I have and I'm freaking out thinking something is wrong!