The width is actually a built-in parameter. I’d recommend using the nodes below:
They can be found in the Clockwork package. Good luck!