Add carousel function.