Creates basic slider, which generates new slides as the user approaches the last ones
changes 'index' name to 'demo'