I think the reason you're having to go so many times is because of the gas built up. Imodium does bulk up the output but it produces lot of gas with it. Trying cutting it back. Also for me potatoes are a source of gas though I lie down and pass it but if I cant I have to make extra trips. Whenever my pouch catches a bug , I just fast the entire day and have bananas, brownbreads, oatmeal, in short nothing too high in fats,protein, or fibre. I eat upto 8-9 bananas in a day that I dont feel well and usually upto 2-3 everyday.
Good luck 👍