adding device ratio to scrolling