update to thumbnail tile swap function