Gold slightly trims gains after jobless-claims report