Honestly sounds like a failure of management if slackers are able to keep up appearances for long enough to cripple entire team efforts.
Then, even after you fire them (or let's even say by some miracle you were able to fire them quickly), it costs a lot of money and time to hire someone new. That's yet more time and budget that isn't going into your team, and your team is also a person short while you go through the process of hiring and then training.
It is leagues and leagues better for "the slacker situation" to not be a problem at all, and it is much less likely to be a problem if prospective slackers aren't given the opportunity to slack off at home to begin with.