Do you think I was wrong for making one of my student give a slice of pizza to another student because he ate hers?

Is it bad that I make a student give the other student his pizza? So one of the students yesterday in my classroom (I work with SPED kids) at her pizza just because she was jealous that she had pizza. We stopped him from eating it which was too late. We had to throws it away. So earlier today he had pizza and I made him give him a slice. He was upset and I said, “Well YOU at his pizza slice yesterday so you owe him. Stop eating other peoples food.”
Some teachers said I’m cruel and that wasn’t nice but I though it was fair and my two assistants said they would do the same.
Can’t be a too nice teacher.

I’m a young teacher for special education in a classroom of 5-6 year olds.

Updates
2 mo
He cried and threw a temper because I stopped him but I yelled, “Well stop taking food for others! That’s rude! BUMMER!!!”
I don’t deal with crying kids. I ignore crying kids unless they are injured or had something sad happened. If they crying over doing work, or someone pushing them around, I will encourage them to stand up for themselves and not coddle them.
Do you think I was wrong for making one of my student give a slice of pizza to another student because he ate hers?
Post Opinion