Slack beats second-quarter revenue estimates