My son does this sometimes in the evenings. He's been really intolerant of being burped recently, so all that air is going through his system instead I guess :/.
I did start giving him a baby massage at night after his bath, and I think it helps somewhat. I watched videos on youtube. There are different ones that show you different massages, depending on what you're trying to achieve. I do massage for digestion/gas.