fix for Gibbs overflow. fixing space feature function to not include start and stop tag positions.