Added the possibility to use ratios for slice values in Slice3 and Slice9.

Trying to use StablexUI with my game with support for different DPIs and this felt like a nice thing to have.

I have tested it only briefly but it looked ok to me.