Stability of unduloid bridges with free boundary in a Euclidean slab