Gassy Baby

Renae
Any advice on how to prevent my 4 week old baby from being so gassy?  He's ok some days and others he won't sleep at all because he's in too much pain.  We've tried gas drops and gripe water and they don't do anything for him.  Any help would be appreciated!