Side panels scaling and slider overlap issue

Right now while working on addon I found one very annoying thing about side panel.

If some UI elements placed too close to right side and panel scaled down - those elements may be fully covered by slider. This issue touch not only my or someone others addon UI but default UI elements as well (eg. locks in Transforms or dotted area for catch & move sub panels).

Example GIFs inside

To scale slider size with panel - not a solution because make it too thin will be same bad.
Maybe solution is fixed minimum/maximum offset distances for right side UI elements alignment.