improved performance by creating anchors dynamically only for selected polaroid