Added setting optimal height to thumbnails