Several thousand jobs to go at Tesla