slideview: Optimize db query for retrieve items