Slime is used by slugs to protect them against predators. When a predator catches a slug, the slug creates an even thicker slime that makes it difficult for their captor to actually swallow and essentially chokes their attacker to death.