target homepage only with if statement.
if ( is_front_page() or is_home() )
}
if your home page has page/2 page/3 then use the following to display the slider on only page 1 of the homepage.
if ( is_front_page() or is_home() && ! is_paged() ) {
}