The men "derived sexual gratification and enjoyment" from knowing the victim was "asleep or unconscious", a jury has heard.