Update SLidingLayer.java

added a toggle option (Lines 233 - 247)