Gas formation could be due to indigestion . Eating heavy meals, lot of sugary foods, pulses etc cause gas formation. First, i would suggest you to check the above things along with a cup of probiotic curd in lunch and dinner. Have a teaspoon of Apple cider vinegar unfiltered diluted with luke warm water before going to sleep. This should help you get relief from the symptoms.