circle slider with the judgment of the endpoint