You use `.children('figure')` in a couple of places. It is advantageous to store that in the variable (rather than the `.length`) to avoid having to query to DOM again.