adhere to instagram 30 pic limit

made changes to adhere to instagram api's 30 pic per page limit.