ugly javascript navSlide, but works