Use hidden attribute instead of show class.
display:block breaks elements that use display:flex box