Layoffs slow to 539K in April; jobless rate rises