Avoid certain foods that produce ore gas.
Like beans, cabbage, onions, brussel sprouts, cauliflowers, brocolli, asparagus and corn.And fruits like pears, apples, prunes, milk, ice cream, cheeses and carbonated drinks.
If you still feel gassy you can take semithicone which does not affect pregnancy
and is safe as it does not cross placenta
, but safety has not been evaluated.