Bug1087058-[Gallery][RTL]-Fix of split photo in fullscreen view when language is set to Arabic r=djf

nit: I prefer === instead of == (for precise comparison) and if instead of ?: (for readability). So I'd rewrite this to
if (n.m.l.d === 'rtl') {
  dx = -dx;
}