A piece of this bi-fold closet door has warped, and as a result many of the slats have pulled out of one or both of their end-points. It seems like it should be possible to repair this with clamps, wood glue, and/or a reinforcing bracket. However, there's more than a dozen loose slats, and they all have to work their way precisely back into their grooves while the edge is being clamped back into it's original shape. They all just keep wiggling around.
How can I line the pieces back up and restore the door shape all at once?