Applying salts to slugs feels the same way you feel when you are dehydrated. Salts will make a slug lose its body fluid rapidly and die off. So, yes, it hurts slugs when they become dehydrated, leading to their death.