make hideSlide and showSlide work