Functionality given to close button so that when clicked it closes the left-sliding panel