Fixed sliding pane layout
Changed local variable to instance variable so that it is available in view