Try a lower magnification (it will give you more depth of field) and a better incident lighting (you can use a led light for night reading placed on one side of the specimen). For sand analysis I suggest 20-40x magnification and a white or black background.