Original: When the word is used in a general sense, it includes sea snails, land snails and freshwater snails. Otherwise snail-like creatures that lack a shell (or have only a very small one) are called slugs.
Simplified: Snails without a shell are usually called slugs.