Cheesy Garlic Hasselback Potato Gratin