To develop an iteration through different values entered on the slider.