While baking, this potato dish thickens because I have used cornstarch in the cheese sauce which helps in absorbing the extra liquid while cooking. Also, the potatoes absorb lot of liquid. And if you have time, keep this dish inside the hot oven for few extra minutes which will thicken it further as per your desired consistency.