Yes, I’ve been running a similar system using these buggers: https://cdn.mcbuero.de/images/items2/lega7-145101.gif
As containers for the batteries I used small junction boxes / distribution boxes; these cost about 50 Euro-cent each over here. https://images-na.ssl-images-amazon.com/images/I/41GsaI1C40L.jpg
TWO IMPORTANT HINTS: your wire shouldn’t be too thin, and on the side. First I went with a 0.5mm stainless steel wire which I built on top of my garden bed walls. Slugs would try to cross it and get shocked. But somehow they would fail to retreat (probably cramping too much) and stay on those wires, slowly getting cooked.
Yes, that’s metal as fuck.
However, where those slugs rested on the wires and closed the power circuit the wire would heat up too much and break. Each morning I would remove like a dozen crunchy slugs and replace the wire with a new one.
So, better pick a thick one. I use 1.2mm instead of 1.6, and so far it seems to work out. I will however steal the idea using staples; didn’t do right away since I wasnt sure if after rainfalls etc, the water might conduct electricity and drain my batteries.
EDIT: okay, just read the part about the rubber. I’ll look what I can come up with over here.