update vector field in gallery