complete homepage slider functionality