refactor(slideBox): properly use size of parent, perf increase