adding slide and changing index js calls