How do i make this rectangle smaller?

I actually found the answer to this, here is a link to where I posted the answer:

if anyone knows how to make the rectangle shrink by a configurable amount (1/2, 1/4, etc.) please let me know as that would be extremely useful in my case