added better carousel functionality