resize viewer