use height instead of max-height for thumbnails (thanks, Zhou, for pointing it out)