i found the answer:
i insert the code:
header("location: " . $_SERVER['REQUEST_URI']);
into update_slider_db function
and add:
//allow redirection, even if my theme starts to send output to the browser
add_action(‘init’, ‘do_output_buffer’);
function do_output_buffer() {
ob_start();
}
into function.php