Creation of Interval

Created the function slideloop to parse the contents of the slider