update page layout with correct div class and size