added pagination to carousel