Gassy baby

dimple
My baby has been very gassy for the past 10 days... He squirms every time he wants to release gas or poop, it is not affecting his sleep... 
My Dr said this is very common in newborn babies as they are getting used to our food but is there anything I can do to help my baby?
I have been giving him gripe water twice a day, I massage him, do the cycling exercise etc but anything else anyone has tried and it has worked?