updating gallery