The share prices are not going down because of the layoffs, the share prices are going down because the company itself is doing shit.
And guess what: stock prices going down is just reallocating capital somewhere else.