How to Deal with Jealousy and Envy?

When we are jealous of what others have, we can often resort to the most destructive sins including backbiting and slander… How do we get rid of this vice?