You can get one of those sump filtration systems like they use in saltwater tanks. No sand will get in and then you just have to use one of those syphons with a gravel vaccuum in it to get the dirt that settles at the bottom.

Steve