when the detail image is on a samll device, shrink the dimensions