control carousel through json file