It appears that the slider stores the value in JSON.
Something like this might work
// in your filter after getting the value from the db
$value = array();
$slider = json_decode($slider_data, true);
if ($slider) {
foreach ($slder as $slide) {
$value[] = $slide['image']['attachment_id'];
}
}
return $value