Functionality to resize with width