WP-1851: fix for slideshow overlay.