gallery page - fix rendering and add navigation
gallery page - fix rendering and add navigation

- fix a lot of small issues with rendering of the details area.
- add checks to store information for next/prev navigation.

autoboxer/MARE,autoboxer/MARE