solve slider problem