matplotlib.widgets Slider remains unresponsive in my code ie. the Slider won\'t move and the images do not get updated. The Slider is supposed to change the contrast in t