added Jordi s automatic width change