automatic resize to Window size/ fix speed issue with smaler and bigger size