added in support for gallery when saving steps