moving slider is in sync with rectangles. And time is also getting updated inside slider