Updated snap function and removed toggleMenu() and snap() bugs

Updated snap() function and added snapZone parametre.
Updated toggleMenu() function
Enabled resize() for desktops compatibility