How do I stop the box at the end of this trail?

I am making a trail that is connected to a ball of particles, but I am having issues with it.
image
It has a weird box at the end of it and I’m not sure how to get rid of it.


This is the texture I’m using. Any help on fixing it would be appreciated.

Fixed the issue using this post: Weird line appearing at the end of trail