Problem with custom function from jQuery slider tutorial

replace slideshow_featured_posts function from that tutorial with this:

function slideshow_featured_posts() {

    $featured = 1; // Assuming that the name of the category ID number 1 is "Featured".
    $count = 3; // How many post to be shown as slides. Ideally, it should be more than 3 posts.
    add_filter('excerpt_length', 'hook_excerpt_featured_length');
    $Silder_query = new WP_Query(array('cat' => $featured, 'posts_per_page' => $count));
?>

<div class="list">
    <?php while ($Silder_query->have_posts()) : $Silder_query->the_post(); ?>
    <div class="item">
        <a class="image" href="https://wordpress.stackexchange.com/questions/23868/<?php the_permalink(); ?>" title="Permanent Link to <?php the_title_attribute(); ?>">
        <?php the_post_thumbnail('slideshow'); ?>
        </a>
        <div class="meta">
            <h3><a href="https://wordpress.stackexchange.com/questions/23868/<?php the_permalink(); ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
            <?php the_excerpt(); ?>
        </div>
        <div style="clear: both"></div>
    </div>
    <?php endwhile; ?>
</div>

<?php
    wp_reset_query();
    remove_filter('excerpt_length','hook_excerpt_featured_length');
}

everything else is ok.