Add limit in number of displayed entries.

TODO: Autoload next entries.
(Changed a `query` to `prepare` as in b9e7213)