Bug 1042319 - [Gallery] WIP patch of update gallery edit UI and visuals

As recommended here, https://github.com/mozilla-b2g/gaia/pull/21885/files , using setAttribute() here instead of dataset.