Resolve right slide logic issue.

Need to finish refactoring js and make it purrrry.