A group of men wearing uniforms with hats gather holding flags.
Group of men wearing uniforms gather around with flags while wearing hats
Gather holding flags is a rephrasing of gather around with flags.
(-x)
(-x)