If they are still on the rims keep them inflated and store them upright. On a pallet or similar would be best. Keep them protected from oil, grease, petrol, sunlight etc. About once a month rotate them a bit so that they don't sit on the same area all the time.
Off the rims you can store them stacked up but again change them round every so often.