There are many reasons plants die. However, if you notice slime on your walls or plants it is undoubtedly due to snails.
Snails and slugs move along via a slime they emit that slides their bodies. This is easily seen at night when they are most active.
It is mucus and looks like your plants and walls are covered in mucus.