now the slider and spinner er functioning (they follow each other)