Twitter to lay off 8% of workforce

Social media giant is laying off up to 336 employees to cut costs