There are a few options I know of, none are perfect.
One: File>Automate>Contact Sheet II
This will preserve layers, include captions of the file titles, but they’re really really small (it’s a contact sheet, after all)
Two: File>Automate>Picture Package
This will not preserve layers and is not included in versions beyond CS5. However, if you take the time, you can adjust the layouts in one go, however you wish. You can find the plugin here: https://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4688&fileID=4376 and how to install it here: https://projectwoman.com/2012/10/install-picture-package-in-photoshop-cs6-step-by-step.html
Three: File>Scripts>Load Files into Stack
Preserves layers but will require rearranging.
Hope this helps.