slidingPanel has a hidePanel method. You should be able to set this directly on the invoker.