spent an afternoon to make the triangles work on resize :O