set top, left and zindex for cards inline programatically