Measure for the top and bottom borders photo