A shell-less animal is much more maneuverable and compressible, so even quite large land slugs can take advantage of habitats or retreats with very little space, retreats that would be inaccessible to a similar-sized snail. Slugs squeeze themselves into confined spaces such as under loose bark on trees or under stone slabs, logs or wooden boards lying on the ground. In such retreats they are in less danger from either predators or desiccation. Those are often suitable places for laying their eggs.
A shell-less animal is much more maneuverable and compressible so even quite large land slugs can take advantage of habitats or retreats with very little space, retreats that would be inaccessible to a similar-sized snail. Slugs squeeze themselves into confined spaces such as under loose bark on trees or under stone slabs, logs or wooden boards lying on the ground. In such retreats they are in less danger from either predators or desiccation. Those are often suitable places for laying their eggs.