fix the slide hiding problem