implemented carousel for the homepage