US new-home sales post slight gain in April