fix bug when enable carousel without images