Better resize

Added inital item width parameter to check if the current one is bigger or smaller and thus provide a better resize functionality