fixed bug with exit animation when page scrolled or device rotated and enhance gridview for differnet devices