Set width dynamically.