makes sliding functionality work for front page slider