what to do for gas and bloating

Eat and drink slowly. Taking your time can help you swallow less air. Try to make meals relaxed occasions; eating when you’re stressed or on the run increases the air you swallow.
Avoid carbonated drinks and beer. They release carbon dioxide gas.
Skip the gum and hard candy. When you chew gum or suck on hard candy, you swallow more often than normal. Part of what you’re swallowing is air.

Don’t smoke. When you inhale smoke, you also inhale and swallow air.
Check your dentures. Poorly fitting dentures can cause you to swallow excess air when you eat and drink.
Get moving. It may help to take a short walk after eating.
Treat heartburn. For occasional, mild heartburn, over-the-counter antacids or other remedies may be helpful. GERD may require prescription-strength medication or other treatments.