scroll to top and bottom snippet