I think using the remove function on the infinite scroll should take away the need to do this.