Set equal height and width for thumbnails