How can I treat bloating while pregnant?

Diet. Eat small meals. Avoid fats and dairy. Exercise everyday.
Frustrating. Simethicone is an over the counter medication which can help with gas. Check with your ob, but I think it is probably safe in pregnancy.