So create a method on DetailPage and call that? Then move the implementation above 'slider.move' down into that method on the DetailPage?