Fix thumbnail popup position