Slide/remove leaving behind ui effects wrapper with height

Slide/remove leaving behind ui effects wrapper with height

I'm trying to implement a slide-in, slide-out deal mimicking the style at foursquare, cycling through a set of elements, only showing X at a time.  I have lifted their code pretty much directly for my first test:

  1.       <script type='text/javascript'> 
  2.         //<![CDATA[
  3.            var delay = 5000;
  4.            var count = 20;
  5.            var showing = 10;
  6.            var i = 0;
  7.            function move(i) {
  8.              return function() {
  9.                $('#feed_item'+i).remove().css('display', 'none').prependTo('#feedContainer');
  10.              }
  11.            }
  12.            function shift() {
  13.              var toShow = (i + showing) % count;
  14.              $('#feed_item'+toShow).slideDown(1000, move(i));
  15.              $('#feed_item'+i).slideUp(1000, move(i));
  16.              i = (i + 1) % count;
  17.              setTimeout('shift()', delay);
  18.            }
  19.            $(document).ready(function() {
  20.              setTimeout('shift()', delay );
  21.            });
  22.         //]]>
  23.       </script>

The problem I'm having is that as opposed to the top item sliding up and going away completely, instead it is leaving behind a ui-effects-wrapper div that has the same height as the item that was removed.  The list continues to move down the page until it cycles through and then it comes back up to the top even higher than it initially started.

Are there any gotchas on element styling or anything that could be causing this?  Or am I missing something here?