Swiss trims loss in first quarter as cost-cutting begins to pay off