Create resizeSlides.js

This is ugly, specific, and a copy and paste from a proof-of-concept that I put together. To be cleaned up.