Gesture setup with an external mouse

I just moved from a logitech MX mouse to a G502 and I'm trying to see if there is a way to setup gestures control with it. So if I hold one of the buttons and slide toward a certain direction it would execute a command (such as switching screens and so on).

I have been looking around the software and I can't find anything for gestures control on a none apple mouse.

If this does exists, could you please let me know where it would be?