Terrible gas pains!😣

Passion💖
I'm about 3 almost 4 weeks pregnant and have horrible gas pains. I've been taking gas medicine which helps until I get hit with it again. It hurts so bad sometimes it hurts to move until I'm able to pass the gas. Anyone else going through this? And what can I do to prevent this?