Add code accounting for one-sided :after filters