Automatically resize the zoom box width to fit the content