update slides.js so slides stay centered in Firefox