Would it be possible to split the controller action in two with adjustable gap such as this?
https://ibb.co/5hnpjDx