Refactor logic of sliding in and out carousel items. Add css comments.