recalculate item dimensions after resize & add error checks