optimize viewport also on orientation change