Change $myposts = get_posts( 'numberposts=6&offset=$debut')
to $myposts = get_posts( 'numberposts=6&category_name=home-slider&offset=$debut')
OR
$myposts = get_posts( 'numberposts=6&category=1&offset=$debut')
replace 1 with your category ID
Hope this helps