slide bar logic changed