showSlide improved, resize window maintains slide