Implemented gallery activity.