script to activate variable sizes of swap