tops = selection.map(function(){
                return $(this).offset().top;
            }).toArray();