fixed dimension preview issue when changing page template.