gold rises slightly as dollar weakens