Change gateways widget layout to better accomodate long ipv6 addresses. It should fix #2790