Added resize functions for each direction and line