Twitter Photo gallery incorrectly rendered after opening another modal