Methods for showing and hiding sliding panel