Minecraft wiki entry for Managing_slimes_in_superflat_mode, associated text: 1 Slime pit (Outdated)
2 Slime cage (Outdated)
3 Moat (Outdated)
4 Command block auto-killer (Creative with cheats only)
5 Turning on Peaceful Mode