Sliding barn door latches

Good Morning. I am new here  so hope I’m posting this in the right place. I am wondering if anyone has any good ideas on latches that hold a sliding barn door closed? The one that the builders recommend, that is pictured, looks like an accident waiting to happen to me. Wondering what others have used or made that is safer for my horses belly and tail?