Don't iterate over loop to print slides if not in debug