fixed card layout and transition for Firefox