Limit number of bookmarks and history items