Improve layout of gallery view of search results