Gallery formatter