display public images with different number of items per row