get proper size of thumbnail