Responsive image grid, works in chromium but not firefox