This should fix the slider wrap-around issue.