add condition of render carousel if carousel exists