changes by developer 16 for gallery field in script