Toxic friendship

I have been with a group of friends for three years but I realise that the whole group of friends are really mean to each other and do not support each other at all. So what should I do? I dont want to lose all of them but I am kind of sick of their mean actions everyday