MRG: informative error when trying to slice images

From suggestion by Eric L.