fixing the ui of carousel elements