settimeout to get proper size