I saw a video if you use a 4x4 stone platform and stone dinosaur gates at Both ends they won't get out when you shut it behind you but make it high enough so they don't get glitched out

More Allosaurus Taming & KO Tips