changes by parinita for gallery field