Move resetTileSizes to layout
Remove resetTileSizes and tileIndex setting when switching layout