changing right-based slider to left-based slider