Fix slider behavior