shrink log to smaller size