check layout dimensions