Refactor slide navigation JS, add progress bar