remove excess pages