improved speed by using css transform