Removing the reversed iteration in gallery detail.