Take $X=(0,1)^3.$ Fix points $p,q$ s.t. $\text{dist}_3(p,q)=\sqrt{3}.$ Construct a smooth regular foliation of $X$ with $(3-1)-$dim. leaves which are topologically $(0,\sqrt{3})\times S^{3-2} $ accumulating to $p,q.$
How is this question is equivalent to the existence of a smooth foliation of $\Bbb R^3$ whose leaves are all diffeomorphic to the open annulus $(0,1)\times S^1?$ I can visualize the former but not the latter unfortunately.