var firstMovement = currentPosition = -(slideWidth - sideWidth + slideWidth);
currentPosition is not declared. It is global.
instead code…
var firstMovement = -(slideWidth - sideWidth + slideWidth),
currentPosition= firstMovement
If you install js lint or
run it on the web you can find that error and many other questionable lines in your code.
JΛ̊KE