slider disappear

fixed "bug" if a slider add no image in one of his slides, none of them where displayed causing js error.

Signed-off-by: anou <anou@smol.org>