There’s discussion of potato pave here and here.
A loaf pan or mini loaf pan makes ut easier to execute, but yes it’s an involved recipe. I suggested cheating further using silicone muffin cups, but that’s not as neat and pretty as sharp lines.