Nope! You just have to deal with the slimes. Though you can set up turrets right next to them to fry them as they spawn.