Fixed a bug with the slideshow calculation module.

The first slide of a slideshow was wrongly calculated when it its
container had no width at the moment the page loaded.