Splitting the transaction into multiple smaller transactions, periodic auction matching, and adjusting the low slippage are various ways to avoid front-running.
Source:https://cointelegraph.com/news/how-to-avoid-front-runners-on-decentralized-crypto-exchanges