Yes, you can slice the mushrooms instead of cooking them whole. However, if you leave them whole you'll get the benefit of all the moisture building up on the inside of the mushroom and a much juicier bite.