add in vars.running variable decleration to prevent double clicks from breaking the slideshow