Update slider.php

When some slides have captions and some don't, the empty captions showed up as white boxes. Being empty strong elements with padding and a background color. This is now fixed.