grid: fix segfault with less than 3 items
grid: fix segfault with less than 3 items

media-explorer/media-explorer,media-explorer/media-explorer,media-explorer/media-explorer,media-explorer/media-explorer