Made next and previous buttons on layer