Tips for gas pains/nightly regimen?

hi everyone! My boyfriend (25M) just got his ileostomy and colostomy about 3 weeks ago. He’s finally home now but has been dealing with gas pains (Usually this happens when he eats too much). He tries to walk around as much as he can, but are there any other ways he can eliminate his gas pains?

Thank you!!!

(also just want to extend my gratitude for this community. You’ve given us so much information and hope on how to navigate his life changing surgery. I simply cannot thank this community enough).