fix the padding for smaller resolutions