adding slider functionality to homepage. This commit added the auto play.