Isn't that already implemented for the actors' card? If not then there must be written a javascript function for. The existing function for movies can be taken - maybe with a few adjustments.
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse