Updating grid width