Well if you slide tackle the ref intentionally than he can give the red card , but unintentionally like in the spain match it is part of the game , the best in that occasion would have been if the spanish players gave the ball to the opponents or passed the ball back to their defenders in sign of fair play