centering scroll content if it is smaller than the destination size