dont initialize slider if there are no images