It’s sad that nobody has gave an answer to this question in years, but I just had this problem and got a solution on my won, which is very funny, but works with exactly this piece of code you have just asked for. I see you are still active in 2020 and i`m sure this might help you and many other people, so here is the answer:
In the “Slider” UI element in the inspector set the max value to ~6 (or more) somehow it works, maybe not the best solution but it works. Here is a screenshot: