implemented janus_finalize_gallery