If we have the figures saved in `$figures` as suggested above, we can do

```
var $shownFigure = $figures.filter(shownfigure);
$shownFigure.show().end()
    .not($shownFigure).hide();
```

It speeds up selection by using the DOM instead of the selector engine.