shitting during anal?

Me and my bf did anal for the first time today. I didn't have to poop or anything and I was clean- bathed and showered before doing it. But when we finished I noticed just a little bit of shit was on my bed. How do I avoid this???!