Place it at the end of a Shrek scene, then follow it with a shocked reaction before the laughter starts, so the bathroom gag gets a beat to land and the next joke can build on that moment.