gold gains as dollar rally takes a breather