Make View_Gallery::init_item() & View_Gallery::init_collection() a bit quicker.

Net results are the same, but we're a bit smarter about when to run queries.