completed carousel functionality

added $cnt on every foreach loop