Isn't this considered insider trading? You'd think there should be a blackout period around any kind of layoff, similar to how they do with earnings.
Are there rules about how long you need to wait after the news goes public to sell? Otherwise, it still seems kind of unfair because you could sell 100 milliseconds later before the market can react.