Update slideshow.js

I already posted a link to a natural...-workaround. I think we just have to make a new Image(), set the src and query the width and the height. I added some code. But it is untested!