Rite Aid slashes 400 corporate jobs