Twitter is laying off 8% of its employees to mount a nimbler comeback