use 2*wlen+1 instead of 2*wlen for creation of taper_sides