Fixed carousel caption

the carousel caption was outside the for loop of the carousel items so the condition was never true, i moved it inside the loop