reflux and gassy 5 week old

Felicia
My son is 5 weeks old and is super gassy, he had his month check up yesterday and the dr suggested that I cut out dairy from my diet and I am, I half breastfeed and half formula so he switched the formula he was on so I started it last night. Also the acid reflux medicine he was on was not working so he switched that also, I have been using gas drops and gripe water plus doing bicycle legs and trying to do the exercises where you make them fart well he is still super gassy and now is constipated any tips on giving my baby some relief? His poor tummy is so gassy I feel so bad for him