Gold gains as dollar slips