compute bboxs of stashes