Slack beat expectations, cuts deal with Amazon