arrows navigation problem when having two images solved, by using 2 different borders variables b and b_tmp on every navigation function