Adding navigation to gallery