There are several methods to solve this problem:
1.)
You can avoid the slugs from sucking all the energy out of the buildings by turning them off. For example you don't need the Super Teleporter or Teleport Pad all the time, so only turn them on for a short time interval.
The only building that has to be activated the whole time are the Barracks because of the oxygen. So, just build Teleport Pads all around the Barracks so that every side of the Barracks can not be reached by slugs (not even from the power path side). For that you will have to build 6 Teleport Pads around the Barracks and turn them off! Now you produce oxygen and the slugs remain unpowered.
2.)
The slugs emerge at a special amount of crystals stored (I guess it's 11 in Back to Basics). So never get more than this amount stored or the slugs will start an invasion! Just teleport vehicles (such as Granite Grinder, LargeMLP, Large Digger) down when you see there are almost too many crystals in the Powerstation. You don't have to use the vehicles, just park them in front of the Powerstation so that their crystals can be picked up quickly and easily when you got enough crystals ("stored" in vehicles).