it doesnt work. i explain few examples.
for example original image pixel1 is: 1500-700. This image thumbnails show 150*70.
for example original image size pixel2 is: 700-1500 this image thumbnail pixel is 70*150
original image size 1500*1500. this image thumbnail pixel is 150*150
if original image size 450*450. this image thumbnail pixel is 150*150.
and 7 pictures was shown details page.
apologise for my english.