Slater & Gordon (ASX:SGH) pens deal for potential takeover by Allegro