I thought about making them spawn a few blocks away but then this becomes a really easy mob trap. If you do that, you just build a 2x2 platofrm of grass and run around, and then when they spawn, they'll fall to their death because you're on a floating platform. But if they spawn right on you, they can't. If you don't mind having that ability to abuse, then fine.