Hi Nikolay,
These problems are always caused by roundoff errors. A Slider control uses an integer variable to represent its current position internally. Depending on the length of the sliding region, there can be problems to adapt the slider's internal range to a particular range of real numbers. Note that this not only depends on the length in pixels that you are forcing programmatically, but also on other conditions that you have no control over, such as the current GUI style and other platform-dependent items. It may also happen that a new version of the PixInsight Core application changes the way these controls are generated and drawn on the screen, invalidating existing code that depends on some kind of tight control over specific control dimensions and ranges. Finally, bear in mind that the user can customize all GUI controls with a modified .qss (Qt Style Sheet) file.
Always try to avoid using 'accurate' maximum and minimum values for process parameters. In other words, try to limit yourself to 0.0 and 1.0 instead of 0.001 or 0.9998, for example. If you really need more than one or two decimal digits for the limits of your parameters, better handle them directly in event handlers, but don't expect a Slider control being able to manage things such as 0.9998 for you.