Fixed issue with wrong calculation of collapsed cards position
More control over layout behaviour