Fix slider behaviour