resizing of trailpage