check slug size heroku code example
Example: how to reduce slug size heroku
#Run these commands in your cmd
heroku plugins:install heroku-repo
heroku repo:gc --app your-app-name
heroku repo:purge_cache --app your-app-name
#this will run an aggressive git clean on your repo