Update slideshow.js

update setAttribute() method with 2 arguments