Added a resize func

Since resize is possible, I took advantage of it. If there is a& better way to do it let me know :)