slider, code fixes