Drupal Views argument menu - sending %! to end of URL
Each segment of the URL is it's own argument. So to get project/6/gallery you would have two arguments.

The first argument %1 (which you already have) is the organic group, the second argument %2 would be (I assume) a content type argument.