They don’t come with a salt-tight skin as you do, so the salt pulls water out of the slug as salt is highly charged and likes to dissolve in water. It does that so gladly that water from the slug moves out on the skin, seemly dissolving the slug. In reality, the dissolving salt is poisonous to the slug and it tries to counteract the salt by producing foamy substances…
Edit: as pointed out, the skin is of course leaky for water, but not salt. My bad for writing that wrong
Latest Answers