Gallery max width fix for FF