Gas can be caused by multiple things - not just swallowing air (which is not as common a cause as most people think). Many cases of gassiness can be attributed to nursing issues, such as not enough hindmilk in a feed (due to an oversupply, timing feeds to x minutes per side, shortened nursing sessions due to discomfort, etc.), or even milk allergy (though true allergy will come with other symptoms like diarrhea, mucousy stools, profuse vomitting (more than the usual few teaspoonfuls of spitup, but fountains), and/or hives.
Try this link if your baby is breastfeeding. It might also have some relevance if you are using formula. Simethicone drops will help with the gas, to some degree - don’t worry about using them with every feed if necessary, I was told by my ped that they do not pass out of the gut, so you aren’t giving meds that will get into the bloodstream.
The most effective burp method for us was to ‘sit’ the baby sideways on my lap, tip him forward to rest against one hand (cupping the chin with my forefinger and thumb to hold his head steady), and in that slightly-forward angle position, thumping him on the back just below the shoulderblades.
For gas in the lower gut, laying them on their right side helps some (shifts the gut to put pressure on the ascending colon, and relieve pressure on the descending colon, helps ‘push’ the gas through), and/or putting baby on his back and cycling his legs like riding a bike, alternating with pressing his knees to his chin (like a squat) and straightening them.
I think your best bet might be relieving the cause, though, rather than trying to handle the results. Check that link!