Clicking close resets slide count