One way to keep slugs and snails off your hostas is to grow them in containers.
Put gravel around the base of the container and another layer around the plants.
A simple method and it works quite well without the use of slug pellets.
The gravel around the base of the hosta helps keep the roots cool and prevent moisture loss