baby has gas and stomach pain before bf

Hannah
My baby fusses and squirms trying to pass gas before I put him to my breast. He will also do it when in his crib (kinda in his sleep).
It will take about 15 min before he is done and has passed gas and wants to latch.
Anyone else has experienced this? 
What can I do to help him? 
I do the bicycle legs, pumping his legs and also rubs his stomach. I don't know what else to do..
I can also hear that he swolloes a good amount of air when breast feeding- I think it's because my milk is coming so fast. I'm now sure what I can do to help him??