Implemented gallery navigation