050813 Commit

Cleaned up the nextSlide and prevSlide code