Changed the location of the transition test to within the go to slide function
Added basic demo.