Hasselback Potato Gratin