Gluing action groupoids: Fredholm conditions and layer potentials