Fixed the issue when item list is get truncated if number of items in folder is big.

Truncation is based on screen height for the session. However, for a non-personal folders,
 item list query returns a repetition since there is a join on keys table.
In order to truncate right, it can be done only a grouped query. Grouped by item ID.