Tesla stock slides after mass layoffs as its market cap falls below $500 billion