Herbert Smith prepares to cut up to 51 jobs, 23 in corporate