Use z attribute, add pooling for thumbnails