Pass slides via array object. Show bars on mousemove. beforeOpen and afterClose callbacks.

I've also deleted a couple of redundant variables.