Slicing bridges with two different bridge directions for shortest path

I have a model with some portion that needs to be bridged. However, the bridge direction is a single parameter. So while bridge in the longer(x) direction is short for the sides, in the center, it needs to cover a much wider distance.

Is it possible to have the slicer change the bridge direction so it always moves in the direction of the shortest distance?

have you found a solution to this?