One way to keep dirt from sliding door tracks is to place a piece of weather stripping along the bottom of the track. This will create a seal that will help keep the dirt out.