Hack to fix photos duplication in grid view