Gluing hexagons at three loops