adds classes to svg groups