fix previews in public galleries