remove zeroes at the beginning and the end of the convolution