Added some functionality to move a slide to the next and previous position.
Fixed some indentations.
Changed some variabe names by adding a leading $ for a jQuery selector.