Oil slips as US stocks rise, but hopes for US-China trade deal stem losses