solved bug with slider