Avoid Sizzle's :first/:last selectors. Use $.first()/$.last()