Add js to photos to provide better link positioning