gold inches up after slumping to over 4-month low