move the caption of the page inside floatingBox class.