functionality of carousel module