The way the official app handles this is to offer a toggle between gallery and feed view for all logical cluters of images. So instead of swiping you would just scroll to get to the next. As the gallery view is essentially the detail view anyway it makes no difference and acts as a vertical swipe.