Cleaning the javascript functions, espcially to make them responsive to the size of the pictures in the slider.