gui: selection clipping
gui: reorganise code, to move presets away from the window