fix photo height bug in firefox