Rock slugs in RuneScape can be found beneath Lumbridge, down in the swamp area.
To reach them, you have a couple of options: there's a passage accessible through the basement in the kitchen, or you can enter via a hole located in Lumbridge Swamp. Either route will lead you to these creatures.