Search for intermediate mass magnetic monopoles and nuclearites with the SLIM experiment