Automates layout when using the subfigure package
