improved slider with transitions