pages resize correctly