generalizing changeSlide() somewhat

can't exactly handle arbitrary data/slide arrangements yet; i guess i
should parameterize the array of slides so i can locate that logic in a
more domain-specific place?

also added a query string getter (carried over from boilerplate)