Improved Longtext resize