fix counter and slider