Show a picture gallery when row(s) is/are expanded.
Fix bug "incorrect max page displayed when data is filtered".