paginate inner and outter windows