add condition to reset slider if left is less than min in application.js