I used M3x10, that needs at least 5.5mm thick panels. I think those give a tiny bit more wiggle room if needed, than an m5.